﻿@model FShare.ViewModels.DeleteFileViewModel

@{
    ViewBag.Title = "Fshare - Delete File";
}

<h2>Delete File</h2>

<div>
    @if (Model.WasDeleted)
    {
        <center>
            <span class="error-message">File is already deleted.</span>
        </center>
    }
    else
    {
        if (Model.IsDeleted)
        {
            <div class="file-general-info">
                <p>The file <span class="file-info">@Model.FileName</span>,
                   uploaded on <span class="file-info">@Model.UploadDate.ToShortDateString()</span>
                   at <span class="file-info">@Model.UploadDate.ToShortTimeString()</span>
                   is successfully deleted.
                </p>
            </div>
        }
        else
        {
            <center>
                <span class="error-message">Requested file can't be deleted at this time.</span>
            </center>
        }
    }
</div>
